package com.nicefact.core;

import java.io.Serializable;

import com.nicefact.globalfilter.GlobalFilterMap;

public class DataContext implements Serializable {
	
	private GlobalFilterMap globalFilterMap;
	
	public void setGlobalFilterMap(GlobalFilterMap globalFilterMap)	{
		this.globalFilterMap = globalFilterMap;
	}
	
	public GlobalFilterMap getGlobalFilterMap()	{
		return this.globalFilterMap;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((globalFilterMap == null) ? 0 : globalFilterMap.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DataContext other = (DataContext) obj;
		if (globalFilterMap == null) {
			if (other.globalFilterMap != null)
				return false;
		} else if (!globalFilterMap.equals(other.globalFilterMap))
			return false;
		return true;
	}

}
